		$(function(){
			var imageType = new Array("jpg","jpeg","gif","bmp","png","cdr","pdf","psd","pic","tif");
			var documentType = new Array("doc","docx","xls","pdf","ppt","wps","pdf","txt","htm");
			var musicType = new Array("mp1","mp2","mp3","mp4","wav","aif","au","ram","wma","mmf","amr","flac","wma","wma");
			var i = 0;
			$("img[name='image']").each(function(){
				for(i = 0; i < imageType.length; i++){
					if($(this).prev().val() == imageType[i]){
						$(this).attr("src","images/image.png");
						return;
					}
				}
				for(i = 0; i < documentType.length; i++){
					if($(this).prev().val() ==  documentType[i]){
						$(this).attr("src","images/file.png");
						return;
					}
				}
				for(i = 0; i < musicType.length; i++){
					if($(this).prev().val() ==  musicType[i]){
						$(this).attr("src","images/music.png");
						return;
					}
				}
			});
		});